package com.authentication.center.model;

import java.util.Date;
import javax.persistence.*;
import lombok.Data;

/**
 * @author garvin
 * @date 2020-05-21
 */
@Data
@Table(name = "t_app_role")
public class AppRole {
    /**
     * 主键ID
     */
    @Id
    private Long id;

    /**
     * 应用ID
     */
    @Column(name = "app_id")
    private Long appId;

    /**
     * 角色名称
     */
    @Column(name = "role_name")
    private String roleName;

    /**
     * 角色编码
     */
    @Column(name = "role_code")
    private String roleCode;

    /**
     * 角色描述
     */
    @Column(name = "role_describe")
    private String roleDescribe;

    /**
     * 角色
     */
    private String role;

    /**
     * 创建人
     */
    @Column(name = "created_by")
    private String createdBy;

    /**
     * 创建时间
     */
    @Column(name = "created_time")
    private Date createdTime;

    /**
     * 更新人
     */
    @Column(name = "updated_by")
    private String updatedBy;

    /**
     * 更新时间
     */
    @Column(name = "updated_time")
    private Date updatedTime;

    public static final String ID = "id";

    public static final String DB_ID = "id";

    public static final String APP_ID = "appId";

    public static final String DB_APP_ID = "app_id";

    public static final String ROLE_NAME = "roleName";

    public static final String DB_ROLE_NAME = "role_name";

    public static final String ROLE_CODE = "roleCode";

    public static final String DB_ROLE_CODE = "role_code";

    public static final String ROLE_DESCRIBE = "roleDescribe";

    public static final String DB_ROLE_DESCRIBE = "role_describe";

    public static final String ROLE = "role";

    public static final String DB_ROLE = "role";

    public static final String CREATED_BY = "createdBy";

    public static final String DB_CREATED_BY = "created_by";

    public static final String CREATED_TIME = "createdTime";

    public static final String DB_CREATED_TIME = "created_time";

    public static final String UPDATED_BY = "updatedBy";

    public static final String DB_UPDATED_BY = "updated_by";

    public static final String UPDATED_TIME = "updatedTime";

    public static final String DB_UPDATED_TIME = "updated_time";
}